def list_sum(L):
    result = 0
    for num in L:
        result = result + num
    return result

L = [1, 3, 5, 7, 9, 11]
result =list_sum(L) # 调用定义的sum_list函数并获得return返回的结果
print(result)